package org.firebug.spring.boot.api.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@RestController
@RequestMapping(value = {"/user"})
public class UserController {
    @RequestMapping(value = "/query", method = RequestMethod.GET)
    public Map<String, String> query() {
        Map<String, String> map = new HashMap<>();
        map.put("name", "张晓东");
        return map;
    }
}